<template>
  <!-- 添加 dirctive 刷新机制 -->
  <div v-rx-reload>vroute</div>
  <hr>
  <button @click="onPush('one')">push <b>one</b> page</button>
  <hr>
  <button @click="onPush('two')">push <b>two</b> page</button>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const onPush = (name) => {
  router.push(name)
}
</script>